<template>
  <div class="home-topnav">
    <div>
      <p class="iconfont">&#xe65f;</p>
    </div>
    <div class="home-topnav-center">
      <span>我的</span>
      <span>发现</span>
      <span>云村</span>
      <span>视频</span>
    </div>
    <div @click="router.push({ path: '/searchfor' })">
      <p class="iconfont">&#xe67a;</p>
    </div>
  </div>
</template>

<script>
import { useRouter } from "vue-router";
export default {
  setup() {
    const router = useRouter();
    return { router };
  },
};
</script>

<style>
.home-topnav {
  width: 100%;
  height: 1rem;
  /* padding: 0.2rem; */

  display: flex;
  justify-content: space-between;
}

.home-topnav-center {
  width: 50%;
  display: flex;
  justify-content: space-between;
  line-height: 1rem;
  align-items: center;
}

.iconfont {
  margin: 0;
  padding: 0rem 0.3rem;
  width: 15%;
  height: 1rem;
  line-height: 1rem;
  align-items: center;
}
</style>
